package com.wecan.base.utils;

import org.apache.commons.lang3.math.NumberUtils;

/**
 * @Author liuzhihao
 * @Date 2022.01.18
 * @Version ${version}
 * @Description ${description}
 */
public class AppNumberUtils {

    public static int toInt(Long data) {
        if (data == null) {
            return 0;
        }
        return NumberUtils.toInt(String.valueOf(data));
    }
}
